<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript" src="js/jquery.cycle.lite.js"></script>
    
<script type="text/javascript">

	$(document).ready(function() {
		$('#gallery').cycle();
	});
</script>
<div id="gallery"><!--cycle 플러그인 사용-->
<img src="img/main1.png" width="700" height="110" alt="movie">
<img src="img/main2.png" width="700" height="110" alt="music">
<img src="img/main4.png" width="700" height="110" alt="music">
<img src="img/main5.png" width="700" height="110" alt="music">
</div>
<br><br><br><br><br><br><br><br>

<table>
	<tr>
		<td style="margin-top: 0px;padding-top: 0px;">
			<table >
				<tr>
					<td colspan="2" width="300px"><span class="index_th">최근
							게시물</span>
					<hr></td>
				</tr>
				<c:forEach items="${requestScope.info.latestList }" var="info">
					<tr>
						<td width="250px"><c:if test="${info.relevel > 0}">
								<c:forEach begin="1" end="${info.relevel}"></c:forEach>[re]</c:if> <c:choose>
								<c:when test="${info.contentType=='red' }">
									<font color="red">[신고]블라인드 처리 되었습니다.</font>
								</c:when>
								<c:otherwise>
									<a href="showContentHits.inven?no=${info.no }">[${info.category}]&nbsp;${info.title
										}</a>&nbsp;&nbsp;<img alt="new" src="img/new.gif" height="9px">
								</c:otherwise>
							</c:choose></td>
						<td width="50px"><center>${info.hits }</center></td>
					</tr>
				</c:forEach>
			</table>
		</td>
		
		<td></td>
		
		<td style="margin-top: 0px;padding-top: 0px;">
		
			<table >
				<tr>
					<td colspan="2" width="300px"><span class="index_th">인기
							게시물</span>
					<hr></td>
				</tr>
				<c:forEach items="${requestScope.info.hottestList }" var="info">
					<tr>
						<td width="250px"><c:if test="${info.relevel > 0}">
								<c:forEach begin="1" end="${info.relevel}"></c:forEach>[re]</c:if> <c:choose>
								<c:when test="${info.contentType=='red' }">
									<font color="red">[신고]블라인드 처리 되었습니다.</font>
								</c:when>
								<c:otherwise>
									<a href="showContentHits.inven?no=${info.no }">[${info.category}]&nbsp;${info.title
										}</a>&nbsp;&nbsp;<img alt="new" src="img/hit.gif">
								</c:otherwise>
							</c:choose></td>
						<td width="50px"><center>${info.hits }</center></td>
					</tr>
				</c:forEach>
			</table>

		</td>
	</tr>
	<tr>
		<td>
			<table style="float: left;">
				<tr>
					<td colspan="2" width="300px"><span class="index_th">자유
							게시판<span style="margin-left: 180px"><a
								href="board.inven?category=freeboard&contentType=1">more</a></span>
					</span>
					<hr></td>
				</tr>
				<c:forEach items="${requestScope.info.freeList }" var="info">
					<tr>
						<td width="250px"><c:if test="${info.relevel > 0}">
								<c:forEach begin="1" end="${info.relevel}">
								</c:forEach>[re]</c:if><a href="showContentHits.inven?no=${info.no }">[${info.category}]&nbsp;${info.title
								}</a></td>
						<td width="50px"><center>${info.hits }</center></td>
					</tr>
				</c:forEach>
			</table>

		</td>
		
		<td></td>
		
		<td></td>
	</tr>
</table>